package com.ruoyi.system.controller;


import com.masiyi.ffmpeg.template.FFmpegTemplate;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.domain.VodFiles;
import com.ruoyi.system.service.FFmpegService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/ffmpeg")
public class FFmpegController {

    @Autowired
    private FFmpegService ffmpegService;

    @PostMapping("/video")
    public AjaxResult video(@RequestBody VodFiles vodFiles){




       return   ffmpegService.pushVideoToRtmp(vodFiles.getFileUrl(),vodFiles.getRtmpUrl());


    }
}
